import {Link, NavLink, Outlet, Route, Routes, useNavigate} from "react-router-dom";
import { Button } from "antd";
import CustomSearch from "@/pages/Components/Search";
import UserList from "@/pages/User/UserList";
import AddUser from "@/pages/Organization/AddUser";
import MultiAdd from "@/pages/User/MultiAdd";
import React from "react";
import {Content} from "antd/es/layout/layout";

const User = () => {
  return (
    <div>
      {/*table数据*/}
      {/*<CustomSearch />*/}

      <Routes>
        <Route index path="/system/user" element={<UserList />} />
        <Route path="/system/user/add-user" element={<AddUser/>} />
        <Route path="/system/user/edit-user" element={<AddUser/>} />
        <Route path="/system/user/multi-add" element={<MultiAdd/>} />
      </Routes>


      <Content
        style={{
          position:'relative',
          // padding: 24,
          marginTop: "10px",
          minHeight: 400,
          background: "#fff",
        }}
      >
        <Outlet />
      </Content>
      {/*<Outlet />*/}
    </div>
  );
};

export default User;
